<?php

use yii\helpers\Html;
use app\assets\AppAsset;
use yii\bootstrap\Nav;
use yii\bootstrap\NavBar;
use yii\helpers\Url;

AppAsset::register($this);

$page_class = function () {
    return str_replace('/', '-', Yii::$app->controller->getRoute());
};

?>
<?php $this->beginPage() ?>
<!doctype html>
<html lang="<?= \Yii::$app->language ?>">
<head>
    <meta charset="<?= \Yii::$app->charset ?>">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <?= Html::csrfMetaTags() ?>
    <title><?= Html::encode($this->title) ?></title>
    <?php $this->head() ?>
    <style>
        @media(max-width: 1600px) {
            .banner-top {
                min-height: 750px;
            }
        }
        @media(max-width: 1920px) {
            .banner-top {
                min-height: 900px;
            }
        }
        .banner-top {
            background: url(/images/banner/22.jpg)no-repeat;
            -webkit-background-size: cover;
            -moz-background-size: cover;
            -o-background-size: cover;
            -ms-background-size: cover;
            background-size: cover;
            min-height: 750px;
            position: relative;
        }
        .banner-top:after {
            position: absolute;
            top: 0;
            left: 0;
            content: '';
            background-color: #000;
            opacity: 0.2;
            z-index: 1;
            width: 100%;
            height: 100%;
            pointer-events: none;
        }
        .header {
            width: 100%;
            padding: 1.5em 0;
            z-index: 999;
            height: 50px;
            /*margin-top: 20px;*/
        }
        .site-home-page .huixian-brand {
            width: 250px;
            /*height: 50px;*/
        }
        .site-home-page .navbar-nav li a {
            color: #000000;
            font-size: 20px;
        }
        .site-home-page .navbar-transparent .navbar-nav .active a {
            /*background-color: #367fa9;*/
            /*border-color: #0a0a0a;*/
            border-bottom: 1px solid #0a0a0a;
        }
        .site-home-page .navbar-transparent .navbar-nav .active a:after {
            border-color: #0a0a0a;
        }
        .site-home-page .nav li a {padding: 15px 0; margin: 10px 10px;}
        .site-home-page .nav li a:hover {border-bottom: 1px solid #0a0a0a; transition: width 3s ease-in-out; background-color: rgba(255,255,255,0);backface-visibility: hidden;-webkit-transition: width 2s ease-in-out;}
        .site-home-page .newslist {
            padding: 5em 0;
            text-align: center;
        }
        .site-home-page .newslist h3 {
            text-align: center;
            color: #0d3172;
            text-transform: uppercase;
            margin: 0 0 .5em;
            font-size: 2.8em;
            letter-spacing: 1px;

        }
    </style>
</head>
<body>
<?php $this->beginBody() ?>
<div class="<?= $page_class() ?>-page">
    <div class="banner-top">
        <div class="header huixian_header">
            <?php
            NavBar::begin([
                'brandLabel' => Html::img('/images/brand/jingcaihx2.png', ['class' => 'huixian-brand']),
                'brandUrl' => ['site/home'],
                'options' => [
                    'class' => 'navbar navbar-transparent',
                ],
            ]);
            echo Nav::widget([
                'options' => ['class' => 'navbar-nav navbar-right'],
                'items' => [
                    ['label' => '首页', 'url' => ['site/home'], 'options' => ['class' => 'huixian-hover']],
                    ['label' => '系统介绍', 'url' => ['site/index']],
                ],
            ]);
            NavBar::end();
            ?>
        </div>
    </div>
    <?= $content ?>
</div>
<?php $this->endBody() ?>
</body>
</html>
<?php $this->endPage() ?>
